﻿namespace vite_net.Controllers.User.UserInfo
{
    public class Response_UserInfo
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string? UserName { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string? NickName { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string? Avatar { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        public string[] Roles { get; set; } = new string[] { };
        /// <summary>
        /// 权限
        /// </summary>
        public string[] Perms { get; set; } = new string[] { };
        /// <summary>
        /// 菜单
        /// </summary>
        public List<Response_Menus> Menus { get; set; } = new();
    }

    public class Response_Menus
    {
        public long Id { get; set; }
        public long ParentId { get; set; }

        public string Path { get; set; }
        public string Name { get; set; }
        public string Component { get; set; }
        public string Title { get; set; }
        public string Icon { get; set; }
        public string[] Buttons { get; set; }
        public List<Response_Menus> Children { get; set; } = new List<Response_Menus>();
    }


}
